######### SOCKET CONNECTION TO THE SERVER ######### AUTH

import socket

s= socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('pylanchat.pythonanywhere.com',8008))

msg = '''GET  HTTP/1.0

'''.encode('ascii')
print(len(msg))

sent_count = s.send(msg)
print('sent this many bytes:', sent_count)
recv_value = s.recv(1024)
print('recieved:', recv_value)


######### SOCKET TRANSMISSION TO THE SERVER #########
